package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WarehousingMapper;
import com.ruoyi.system.domain.Warehousing;
import com.ruoyi.system.service.IWarehousingService;

/**
 * 入库管理Service业务层处理
 * 
 * @author haoxx
 * @date 2022-04-20
 */
@Service
public class WarehousingServiceImpl implements IWarehousingService 
{
    @Autowired
    private WarehousingMapper warehousingMapper;

    /**
     * 查询入库管理
     * 
     * @param id 入库管理主键
     * @return 入库管理
     */
    @Override
    public Warehousing selectWarehousingById(Long id)
    {
        return warehousingMapper.selectWarehousingById(id);
    }

    /**
     * 查询入库管理列表
     * 
     * @param warehousing 入库管理
     * @return 入库管理
     */
    @Override
    public List<Warehousing> selectWarehousingList(Warehousing warehousing)
    {
        return warehousingMapper.selectWarehousingList(warehousing);
    }

    /**
     * 新增入库管理
     * 
     * @param warehousing 入库管理
     * @return 结果
     */
    @Override
    public int insertWarehousing(Warehousing warehousing)
    {
        return warehousingMapper.insertWarehousing(warehousing);
    }

    /**
     * 修改入库管理
     * 
     * @param warehousing 入库管理
     * @return 结果
     */
    @Override
    public int updateWarehousing(Warehousing warehousing)
    {
        return warehousingMapper.updateWarehousing(warehousing);
    }

    /**
     * 批量删除入库管理
     * 
     * @param ids 需要删除的入库管理主键
     * @return 结果
     */
    @Override
    public int deleteWarehousingByIds(Long[] ids)
    {
        return warehousingMapper.deleteWarehousingByIds(ids);
    }

    /**
     * 删除入库管理信息
     * 
     * @param id 入库管理主键
     * @return 结果
     */
    @Override
    public int deleteWarehousingById(Long id)
    {
        return warehousingMapper.deleteWarehousingById(id);
    }
}
